package com.cgg.stock.client;


import com.cgg.stock.common.pojo.Order;
import com.cgg.stock.common.pojo.TradeOrder;
import com.cgg.stock.common.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value="transaction-service")
@RequestMapping("match")
public interface TradeClient {

    @PostMapping("/matchSell")
    public ResponseData matchSell(@RequestBody Order order);

    @PostMapping("/matchBuy")
    public ResponseData matchBuy(@RequestBody Order order);
}
